package com.anlu.pattern.action.command;

/**
 * <p>
 * Description:创建一个请求类
 * <p>
 * <p>
 *
 * @author anlu
 * @date 2022/10/13 9:46
 */
public class Stock {
    private String name = "ABC";
    private int quantity = 10;

    public void buy(){
        System.out.println("Stock buy...");
    }
    public void sell(){
        System.out.println("Stock sell...");
    }

    public void buyUndo(){
        System.out.println("撤销购买");
    }
}
